package com.example.android.game;

import java.util.HashMap;

public class GameState
{
	private Player mainPlayer;
	private HashMap<String, Player> opponents = new HashMap<String, Player>();
	private HashMap<Integer, Building> buildings = new HashMap<Integer, Building>();
	private int currentBuildingId = 0;
	
	private static GameState instance = new GameState();
	
	public void Initialize(String mainLogin)
	{
		mainPlayer = new Player(mainLogin);
	}
	
	public static GameState getInstance()
	{
		return instance;
	}
	
	public Player getMainPlayer()
	{
		return mainPlayer;
	}

	public int getNextBuildingId()
	{
		return currentBuildingId++;
	}
	
	public HashMap<String, Player> getOpponents()
	{
		return opponents;
	}
	
	public HashMap<Integer, Building> getBuildings()
	{
		return buildings;
	}
}
